<ui:composition template="../layout/layout.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="title">
		<h:outputText value="Sigadoc - Detalhes do Documento" />
	</ui:define>

	<ui:define name="content">
		<div id="path">
			<h1>Detalhes do Documento</h1>
			<hr />
		</div>
		<h2></h2>
		<div style="width:70%;">
		<div align="left" style="float:left;">
			<h:outputText value="Id: " />
			<h:outputText value="#{detalheMBean.documento.id}" />
			<br />
			<h:outputText value="Classe: " />
			<h:outputText value="#{detalheMBean.documento.classe.descricao}" />
			<br />
			<h:outputText value="Tipo: " />
			<h:outputText value="#{detalheMBean.documento.tipo}" />
			<br />
			<h:outputText value="Arquivo Digital: " />
			<h:outputText value="#{detalheMBean.documento.arquivo.nome} " />
			<br />
			<h:outputText value="Data de Cadastro: " />
			<h:outputText value="#{detalheMBean.documento.dataCadastro}">
				<f:convertDateTime for="dataCadastro" pattern="dd/MM/yyyy" />
			</h:outputText>
			<br />
			<h:outputText value="Data de Entrada: " />
			<h:outputText id="dataEntrada"
				value="#{detalheMBean.documento.dataEntrada}">
				<f:convertDateTime for="dataEntrada" pattern="dd/MM/yyyy" />
			</h:outputText>

		</div>
		<div style="float:right;">
			<h:panelGroup rendered="#{detalheMBean.PDFOrImage}">
				<iframe id="iArquivo" src="../tmp/#{detalheMBean.documento.arquivo.nome}"></iframe>
			</h:panelGroup>
			</div>
			</div>
			<br/>
		<div class="spacer"></div>

	</ui:define>
</ui:composition>